package com.bnz.testconsumer.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xy
 * @date 2022/12/6
 */

@RestController
@RefreshScope
public class TestController {
    @Value("${bnz.age}")
    private  String  age;

    @Value("${dev.lala}")
    private String lala;

    @RequestMapping("/api/get")
    public String m1 (){
        return age;
    }
    @RequestMapping("/api/lala")
    public String m2 (){
        return lala;
    }

}
